package service;

import domain.Orders;

import java.util.List;

/**
 * @author Freedy
 * @date 2020/12/23 19:56
 */
public interface IOrdersService {

    /**
     * 查询所有订单
     * @return
     * @throws Exception
     * @param page
     * @param size
     */
    List<Orders> findAll(int page, int size) throws Exception;

    /**
     * 通过id查询订单
     * @param id
     * @return
     */
    Orders findById(int id) throws Exception;
}
